<?php

class serviceConnect {
	var $host = "localhost";
	var $login ="root";
	var $password = "root";
	var $base = "catalogue";
		
	function serviceConnect() {
	}
	
	function connectRequest() {
	
	$connect = mysql_connect($this->host,$this->login,$this->password)
	or die("Pas de connection au serveur");
	
	$myConnexion = mysql_select_db($this->base,$connect) or die ("Pas de connection &agrave; la base");
	return $myConnexion;
		
	}

}
?>